<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        window.onload=function () {
            var onsb=document.getElementById("s979");
            onsb.onsubmit=function () {
                alert("动态注册，发现非法");
                return false;
                //return true;
            }
        }
    </script>
</head>
<body>
    <form action="http://localhost:8080" method="get" id="s979">
        <input type="submit" name="表单上传" value="动态注册" />
    </form>
</body>
</html>